package com.design_pattern.proxy;

public class Inter implements InterFace {
    private String name;

    Inter(String name) {
        this.name = name;
    }

    @Override
    public void play(String s) {
        System.out.println("字符串型play");
    }

    @Override
    public void play() {
        System.out.println("无参play");
    }

    @Override
    public void play(int i) {
        System.out.println("整数型参数play");

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
